package Interaction;

public class Test {

	public static void main(String args[])
	{
		// Parameters for implementing the interacting object.
		int GENERATIONS = 5, SIZE = 500, DISTRIBUTION = 5, MORTALITY = 10, COOPCOST = 5, DEFCOST = 0, REWARD = 10;
		
		// *** Construction and initiation. ****
		Environment myTheory = new Environment(SIZE, DISTRIBUTION, COOPCOST, DEFCOST, REWARD);
		
		
		for(int i = 0 ; i < GENERATIONS ; i++)
		{
			// *** Interaction. ***
			myTheory.interaction();
			
			// *** Mortality. ***
			myTheory.mortality(MORTALITY);
			
			// *** Restoration. ***
			myTheory.reproduction();
		}
		
		
		// *** Data collection. ***
		myTheory.printAll();
		
		
		
		// Test af enkelt Agent.
		myTheory.getV_().elementAt(78).printSingle();
	}
}